#ifndef ADD_A_CH_H
#define ADD_A_CH_H

#include <QDialog>
#include "grouplist.h"

namespace Ui {
class ADD_A_CH;
}

class ADD_A_CH : public QDialog
{
    Q_OBJECT

public:
    explicit ADD_A_CH(QString str,QString freq, QWidget *parent = 0);
    ~ADD_A_CH();

     void switch_language(QString language);
     void init(QString str);
     void setFreq(QString str);
private slots:
    void deal_combox_power(QString str);
    void deal_combox_Bandwidth(QString str);
    void deal_combox_RXCTCSSType(QString str);
    void deal_combox_RXCTCSSCode(QString str);
    void deal_combox_TXCTCSSType(QString str);
    void deal_combox_TXCTCSSCode(QString str);
    void deal_combox_volume(QString str);
    void deal_combox_mute(QString str);
    //void deal_combox_encrypt(QString str);
    void deal_group_list(QString str);
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::ADD_A_CH *ui;
    QString name;
    QString recvfreq;
    QString sendfreq;
    QString id;
    QString power;
    QString Bandwidth;
    QString RX_CTCSS_Type;
    QString RX_CTCSS_Code;
    QString TX_CTCSS_Type;
    QString TX_CTCSS_Code;
    QString volume;
    QString mute;
    QString language;
    QString num;
    QString list;
    QString key;
    QString lencrypt;
    QString slist;

   QString freq;

signals:
    void send_str(QString str);

};

#endif // ADD_A_CH_H
